//
//  KDSearchRequestTool.m
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/11/24.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import "KDSearchRequestTool.h"
#import "KDBaseTool.h"
#import "KDGetSaerchListResult.h"
#import "KDMKeywordMonitorResult.h"
#import "KDBaseResult.h"
@implementation KDSearchRequestTool
+ (void)getSearchListWithParam:(KDGetSaerchListParam *)param WithMainType:(NSInteger)mainType success:(void (^)(KDBaseResult * responseObejct))success failure:(void(^)(NSError *error))failure{
     NSString *url = ServerActionAddr;
    switch (mainType) {
        case 0:
            [KDBaseTool get:url param:param resultClass:[KDMKeywordMonitorResult class] success:success failure:failure];
            break;
        case 1:
            [KDBaseTool get:url param:param resultClass:[KDGetSaerchListResult class] success:success failure:failure];
            break;
        default:
            break;
    }
}
@end
